package net.lab1024.sa.admin.module.business.category.domain.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@Schema(description = "操作日志查询参数")
public class LogQuery {

    @Schema(description = "页码", example = "1")
    private Integer page = 1;

    @Schema(description = "每页数量", example = "10")
    private Integer size = 10;

    @Schema(description = "操作人姓名", example = "王小峰")
    private String operatorName;

    @Schema(description = "学工号", example = "2021070112")
    private String operatorCode;

    @Schema(description = "手机号", example = "13800138000")
    private String operatorPhone;

    @Schema(description = "操作模块", example = "个人中心")
    private String module;

    @Schema(description = "班级", example = "化学2023级1班")
    private String className;

    @Schema(description = "操作结果", example = "成功")
    private String result;

    @Schema(description = "开始时间", example = "2025-05-25 00:00:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "结束时间", example = "2025-05-25 23:59:59")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}